]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
quick-slider: Do not allow focusing the icon when it's not reactive
authorLukáš Tyrychtr <ltyrycht@redhat.com>
Mon, 23 Sep 2024 08:47:49 +0000 (10:47 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 17 Oct 2024 16:48:40 +0000 (18:48 +0200)
This hides a disabled unlabeled button from the focus order in the display
brightness status indicator, and may be others.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3481>
(cherry picked from commit 25a2a0156e3d6279f57ff4ea0493433b679ea35b)

js/ui/quickSettings.js

index 1f10fa590d779739f7339ddfcbf3cf2cb6f01eda..344732e3fc9eaf89fa598ca57059b5dcf304c123 100644 (file)
@@ -294,6 +294,9 @@ export const QuickSlider = GObject.registerClass({
         this.bind_property('icon-reactive',
             this._iconButton, 'reactive',
             GObject.BindingFlags.SYNC_CREATE);
+        this.bind_property('icon-reactive',
+            this._iconButton, 'can-focus',
+            GObject.BindingFlags.SYNC_CREATE);
         this.bind_property('icon-label',
             this._iconButton, 'accessible-name',
             GObject.BindingFlags.SYNC_CREATE);